//
//  HHSelectUserViewController.h
//  HHChatKit
//
//  Created by Henry on 2021/8/20.
//

#import <UIKit/UIKit.h>
#import "HHSelectUserModel.h"

NS_ASSUME_NONNULL_BEGIN

/// 分组选择
@interface HHSelectUserViewController : UIViewController

@property (nonatomic, strong) NSMutableArray <HHSelectUserModel *> *dataArray;
@property (nonatomic, strong) NSMutableArray <NSString *> *headerArray;
@property (nonatomic, assign) BOOL hasIndexSearch;

@property (nonatomic, strong) UITableView *tableView;

@property (nonatomic, copy) void(^doneCallback)(NSArray <HHSelectUserModel *> *datas);

- (void)reloadData;
- (void)reloadSelectData;

- (NSArray <HHSelectUserModel *> *)getSelectData;
- (NSArray <NSString *> *)getSelectUserIds;

- (void)onClickDone:(UIButton *)sender;
- (void)didSelectHeaderAtIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
